import axios from 'axios';
import {apiPath} from "./apiPath";

const baseUrl = apiPath.category;

export const getCategoryList = async () => {
    const res = await axios.post(baseUrl.list);
    return res.data;
};

export const getCategoryArticleList = async (data: any) => {
    const res = await axios.post(baseUrl.articleList, data);
    return res.data;
}
